package org.example.service;

import org.apache.dubbo.common.stream.StreamObserver;

/**
 * @Author: tang
 * @Description:
 * @Date 2025/7/29 22:54
 */
public interface DemoService {

    String sayHello(String name);

    // 双向流
    StreamObserver<String> sayHelloStream(StreamObserver<String> response);

    // 服务端流
    void sayHelloServerStream(String request, StreamObserver<String> response);

}
